package com.why.whyoj.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.why.whyoj.common.BaseResponse;
import com.why.whyoj.model.dto.questionsubmit.QuestionSubmitAddRequest;
import com.why.whyoj.model.dto.questionsubmit.QuestionSubmitQueryRequest;
import com.why.whyoj.model.entity.QuestionSubmit;
import com.why.whyoj.model.entity.User;
import com.why.whyoj.model.vo.QuestionSubmitQueryVO;

import java.util.List;


/**
* @author 22950
* @description 针对表【question_submit(题目提交)】的数据库操作Service
* @createDate 2024-04-08 23:19:45
*/
public interface QuestionSubmitService extends IService<QuestionSubmit> {
      List<QuestionSubmitQueryVO> questionSubmitListToVoList(List<QuestionSubmit> records, User user);


    /**
     * 提交
     *
     * @param questionSubmitAddRequest
     * @param loginUser
     * @return
     */
    long doQuestionSubmit(QuestionSubmitAddRequest questionSubmitAddRequest, User loginUser);

    QuestionSubmitQueryVO getQuestionSubmitById(long questionSubmitId, User user);

    QueryWrapper<QuestionSubmit> getQueryWrapper(QuestionSubmitQueryRequest questionSubmitQueryRequest);
}
